package com.qc.qcgl807;
 //汽车类的小车  
public class Car extends QiChe {
    //属性    车型号
	private  String  cheXing;
	
	public Car() {
	}
	public Car(String pinPai, String chePai, int riJia,String  cheXing) {
		super(pinPai, chePai, riJia);
		this.cheXing = cheXing;
	}
	public String getcheXing() {
		return cheXing;
	}
	public void setcheXing(String cheXing) {
		this.cheXing = cheXing;
	}
	
	//方法    求租金
	public double tota(int day) {
		double zTota = day*this.getRiJia();
		if(day>7&&day<=30){
			zTota *=0.9;
		}else if(day>30&&day<=150){
			zTota *=0.8;
		}else if(day>150){
			zTota *=0.7;
		}
		return zTota;
	}
	

}
